import request from '@/utils/request'

// 查询间接费用列表
export function listIndirect(query) {
  return request({
    url: '/system/indirect/list',
    method: 'get',
    params: query
  })
}

// 查询间接费用详细
export function getIndirect(id) {
  return request({
    url: '/system/indirect/' + id,
    method: 'get'
  })
}

// 新增间接费用
export function addIndirect(data) {
  return request({
    url: '/system/indirect',
    method: 'post',
    data: data
  })
}

// 修改间接费用
export function updateIndirect(data) {
  return request({
    url: '/system/indirect',
    method: 'put',
    data: data
  })
}

// 删除间接费用
export function delIndirect(id) {
  return request({
    url: '/system/indirect/' + id,
    method: 'delete'
  })
}
